package com.px.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.px.system.dao.ProfessionalDao;
import com.px.system.domain.ProfessionalDO;
import com.px.system.service.ProfessionalService;



@Service
public class ProfessionalServiceImpl implements ProfessionalService {
	@Autowired
	private ProfessionalDao professionalDao;
	
	@Override
	public ProfessionalDO get(Long id){
		return professionalDao.get(id);
	}
	
	@Override
	public List<ProfessionalDO> list(Map<String, Object> map){
		return professionalDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return professionalDao.count(map);
	}
	
	@Override
	public int save(ProfessionalDO professional){
		return professionalDao.save(professional);
	}
	
	@Override
	public int update(ProfessionalDO professional){
		return professionalDao.update(professional);
	}
	
	@Override
	public int remove(Long id){
		return professionalDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return professionalDao.batchRemove(ids);
	}
	
}
